<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Vue</title>
    <link rel="stylesheet" href="test.css">
    <script src="https://unpkg.com/vue"></script>
</head>

<body>

    <div id="vue-app">
        <p>{{name}}</p>
        <p>{{age}}</p>
        <button @click="add()">增加一岁</button>
    </div>

<script src="test.js"></script>
</body>
</html>